package com.hxgz.steel.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("求购商品")
public class Quotation {

  private Long id;

  @ApiModelProperty("实单求购id")
  private Long askId;

  @ApiModelProperty("店铺商家id")
  private Long merchantId;

  @ApiModelProperty("商品报价")
  private BigDecimal price;

  @ApiModelProperty("状态 0未报价  1已报价  2已拒绝")
  private Integer status;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ApiModelProperty("创建时间")
  private Date createTime;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @ApiModelProperty("修改时间")
  private Date updateTime;

  @ApiModelProperty("运费")
  private BigDecimal freight;

  @ApiModelProperty("税点")
  private BigDecimal taxPoint;

  @ApiModelProperty("税费")
  private BigDecimal taxation;

  @ApiModelProperty("交易周期")
  private Integer transactionPeriod;

  @ApiModelProperty("总价")
  private BigDecimal totalPrice;

  @ApiModelProperty("商家报价文件")
  private String quotationFileUrl;
}